package com.dfbz.demo01;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_异常的捕获 {
    public static void main(String[] args) {
        method();
        System.out.println("main....");
    }

    public static void method() {
        print();
        System.out.println("method....");
    }

    public static void print() {
        try {
            String str = null;
            str.toLowerCase();
        } catch (NullPointerException e) {
            e.printStackTrace();
        }
        System.out.println("print");
    }
}
